import 'package:flutter/material.dart';

class LoginProvider with ChangeNotifier{
  Map <dynamic,dynamic> data = {
    'buttonLoading': false, // 按钮是否在加载中
    'type': 1, // 0:注册 1:登录 2:忘记密码
    'email': TextEditingController(), // 邮箱
    'password': TextEditingController(), // 密码
    'confirmPassword': TextEditingController(), //确认密码
    'passwordHidden': true, // 密码隐藏
    'confirmPasswordHidden': true, // 确认密码隐藏
  };
  
  changeValue( String valName, dynamic val ){
    data[valName] = val;
    notifyListeners();
  }
  notify(){
    notifyListeners();
  }
}